import request from '@/utils/request'

// 查询登录日志列表
export function list(query) {
  return request({
    url: 'logs/selectByPage',
    method: 'get',
    params: query
  })
}
// 按条件查询日志
export function logSearch(data) {
  return request({
    url: 'logs/selectByUsers',
    method: 'get',
    params: data
  })
}
// 按地址查询日志
export function logSearchIp(data) {
  return request({
    url: 'logs/selectByAdress',
    method: 'get',
    params: data
  })
}

// 删除登录日志
export function delLogininfor(infoId) {
  return request({
    url: '/monitor/loginlog/' + infoId,
    method: 'delete'
  })
}

// 清空登录日志
export function Deleteall() {
  return request({
    url: 'logs/deleteALL',
    method: 'delete'
  })
}

